package org.tinygroup.bizframe.dao.inter.constant;

import org.tinygroup.bizframe.dao.inter.pojo.Tbtrans;
import org.tinygroup.tinysqldsl.base.Column;
import org.tinygroup.tinysqldsl.base.Table;

/**
 * <!-- begin-user-doc --> 交易配置表 * <!-- end-user-doc -->
 */
public class TbtransTable extends Table {

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 */
	public static final TbtransTable TBTRANS_TABLE = new TbtransTable();

	/**
	 * <!-- begin-user-doc --> ID * <!-- end-user-doc -->
	 */
	public final Column ID = new Column(this, "id");
	/**
	 * <!-- begin-user-doc --> 交易编号 * <!-- end-user-doc -->
	 */
	public final Column TRANS_CODE = new Column(this, "trans_code");
	/**
	 * <!-- begin-user-doc --> 交易名称 * <!-- end-user-doc -->
	 */
	public final Column TRANS_NAME = new Column(this, "trans_name");
	/**
	 * <!-- begin-user-doc --> 交易允许 * <!-- end-user-doc -->
	 */
	public final Column ENABLE_FLAG = new Column(this, "enable_flag");
	/**
	 * <!-- begin-user-doc --> 允许渠道组 * <!-- end-user-doc -->
	 */
	public final Column CHANNELS = new Column(this, "channels");
	/**
	 * <!-- begin-user-doc --> 后台联机 * <!-- end-user-doc -->
	 */
	public final Column HOST_ONLINE = new Column(this, "host_online");
	/**
	 * <!-- begin-user-doc --> 交易类别 * <!-- end-user-doc -->
	 */
	public final Column TRANS_TYPE = new Column(this, "trans_type");
	/**
	 * <!-- begin-user-doc --> 监控标志 * <!-- end-user-doc -->
	 */
	public final Column MONITOR_STATUS = new Column(this, "monitor_status");
	/**
	 * <!-- begin-user-doc --> 日志级别 * <!-- end-user-doc -->
	 */
	public final Column LOG_LEVEL = new Column(this, "log_level");
	/**
	 * <!-- begin-user-doc --> 监控交易类别 * <!-- end-user-doc -->
	 */
	public final Column MON_TRANS_TYPE = new Column(this, "mon_trans_type");
	/**
	 * <!-- begin-user-doc --> 备用1 * <!-- end-user-doc -->
	 */
	public final Column RESERVE1 = new Column(this, "reserve1");
	/**
	 * <!-- begin-user-doc --> 备注2 * <!-- end-user-doc -->
	 */
	public final Column RESERVE2 = new Column(this, "reserve2");
	/**
	 * <!-- begin-user-doc --> 保留域3 * <!-- end-user-doc -->
	 */
	public final Column RESERVE3 = new Column(this, "reserve3");

	private static java.util.Map<String, String> mappings = new java.util.Hashtable<String, String>();

	public String getFieldName(String attrName) {
		return mappings.get(attrName);
	}

	public TbtransTable() {
		super("tbtrans");
	}

	public TbtransTable(String schemaName) {
		super(schemaName, "tbtrans");
	}

	public TbtransTable(String schemaName, String alias) {
		super(schemaName, "tbtrans", alias);
	}

	public TbtransTable(String schemaName, String alias, boolean withAs) {
		super(schemaName, "tbtrans", alias, withAs);
	}

	public boolean isAutoGeneratedKeys() {
		return true;
	}

	public Class<Tbtrans> getPojoType() {
		return Tbtrans.class;
	}

	static {
		mappings.put("id", "id");
		mappings.put("transCode", "trans_code");
		mappings.put("transName", "trans_name");
		mappings.put("enableFlag", "enable_flag");
		mappings.put("channels", "channels");
		mappings.put("hostOnline", "host_online");
		mappings.put("transType", "trans_type");
		mappings.put("monitorStatus", "monitor_status");
		mappings.put("logLevel", "log_level");
		mappings.put("monTransType", "mon_trans_type");
		mappings.put("reserve1", "reserve1");
		mappings.put("reserve2", "reserve2");
		mappings.put("reserve3", "reserve3");

	}

}
